﻿using Volo.Abp.Authorization.Permissions;

namespace Ebusiness_OrderService.Permission
{
    public class CustomPermissionDefinitionProvider : PermissionDefinitionProvider
    {
        public override void Define(IPermissionDefinitionContext context)
        {
            //定义业务模块 ， 定义权限组
            PermissionGroupDefinition permissionGroupDefinition = context.AddGroup("AbpIdentity");
            //定义具体权限(商品查询权限)
            var prodcutMange = permissionGroupDefinition.AddPermission("Order.Add");
            //prodcutMange.AddChild("Product.Mange.Select");
            //prodcutMange.AddChild("Product.Mange.Delete");
            //prodcutMange.AddChild("Product.Mange.Update");
            //prodcutMange.AddChild("Product.Mange.Insert");
            //prodcutMange.AddChild("Product.Mange.Page");
        }
    }
}
